﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Management;

namespace test1
{
    using hypervmgmtlib;

    internal class Program
    {
        private static void Main(string[] args)
        {
            ManagementPath.DefaultPath.Server = "vmshark10";

            VM_.Create("vmtest1");

        }

        private static void test1()
        {
            var vmmgmt = new VMMgmt("vmshark10");
            var vm1 = vmmgmt.Spawn("testvm1");
            vm1.Cpu = 2;
            vm1.Mem = 1024;
            vm1.AddStorage(ControllerType.Ide, DriveType.Vhd, @"c:\tmp\a.vhd");
        }
    }
}